Ext.define('ClientInfo', {
  extend: 'Ext.panel.Panel',
  constructor: function (config) {
        this.id = 'ClientInfo';
        this.title = 'Инормация по клиенту';
        this.region = 'center';
        this.layout = 'border';
        this.margins = '0 0 0 0';
        this.border = false;
        this.autoScroll = true;

        this.initComonInfoPanel();
        this.initFinInfoPanel();

        this.items =  [ this.ComonInfoPanel, this.FinInfoPanel ];

        this.callParent(arguments); 

    },
    initComonInfoPanel: function() {
        this.ComonInfoPanel = Ext.create('Ext.Panel', {
            //layout: 'border',
            margins: '3 3 0 3',
            cmargins: '3 3 0 3',
            region: 'north',
            height: 200,
            html: '---'
            //items:[{}]
        });
    },
    initFinInfoPanel: function() {
        this.FinInfoPanel = Ext.create('Ext.Panel', {
            //layout: 'border',
            region: 'center',
            margins: '3 3 3 3',
            cmargins: '3 3 3 3',
            html: '---'
            //items:[{}]
        });
    }
});


